package com.fxf.srb.core.service;

import com.fxf.srb.core.pojo.entity.UserAccount;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.Map;

/**
 * <p>
 * 用户账户 服务类
 * </p>
 *
 * @author fxf
 * @since 2021-05-26
 */
public interface IUserAccountService extends IService<UserAccount> {

    String commitCharge(BigDecimal chargeAmt, Long userId);

    String notify(Map<String, Object> paramMap);

    /**
     * 获取用户账户余额
     * @param userId
     * @return
     */
    BigDecimal getAccount(Long userId);


    /**
     * 用户提现接口
     * @param fetchAmt
     * @param userId
     * @return
     */
    String commitWithdraw(BigDecimal fetchAmt, Long userId);

    /**
     * 用户提现回调接口
     * @param paramMap
     */
    void notifyWithdraw(Map<String, Object> paramMap);
}
